#!/bin/bash
#

df -hT | grep "^/dev" | while read line; do
   usage=$(echo $line | awk '{print $6}' | awk -F% '{print $1}')
if [ $usage -gt 15 ];then
   disk=$(echo $line | awk '{print $7}')
   tol_size=$(echo $line | awk '{print $3}')
   free_size=$(echo $line | awk '{print $5}')
   echo "磁盘名称：${disk},总空间：${tol_size},剩余空间：${free_size}"
fi
done
